package com.pojo.payment.service;

import com.pojo.payment.entity.Ticket;
import com.pojo.payment.feign.TicketFeignClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.Map;

@Service
public class TicketService {

    @Autowired
    private TicketFeignClient ticketFeignClient;

    public Map<Long, Ticket> getRestTicket() {
        return ticketFeignClient.getRestTicket();
    }


    public String changTicketState(Long t_id, Integer state) {
        return ticketFeignClient.changTicketState(t_id, state);
    }
}


